{template header}
<link href="{GODHOUSE_DOMAIN_WWW}css/calendar.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{GODHOUSE_DOMAIN_WWW}js/calendar.js"></script>
<script language="javascript" type="text/javascript" src="{GODHOUSE_DOMAIN_WWW}js/calendar-zh.js"></script>

<div class="path">
	<span>产品销量排行</span>
</div>
<div class="content">
	<div class="c1">
	<div style="border:1px #B9D1E3 solid; background:#FFFFFF">
	<form action="report-product.htm" method="POST">
		<table cellspacing="5" cellpadding="5">
			<tr>
				<td>
					开始日期：</td><td><input type="text" name="startDate" id="startDate" value="$startDate" onclick="showCalendar('startDate');" /></td><td>
					截止日期：</td><td><input type="text" name="endDate" id="endDate" value="$endDate" onclick="showCalendar('endDate');" /></td><td>
					省：</td><td>
						<select name="province" style="width:120px" onchange="ajaxget('report-ajaxCity-'+this.value+'.htm', 'showcity', 'showcity', null, null)">
							<option value="">全部</option>
							<!--{loop $provinceList $v}-->
							<option value="$v[id]" {if $v[id]==$province}selected="selected"{/if}>$v[name]</option>
							<!--{/loop}-->
						</select>
						</td><td>市：</td><td>
						<div id="showcity">
							<select name="city" style="width:120px;">
								<option value="">全部</option>
								<!--{loop $cityList $v}-->
								<option value="$v[id]" {if $v[id]==$city}selected="selected"{/if}>$v[name]</option>
								<!--{/loop}-->
							</select>
						</div>
						</td><td>
					<input type="submit" name="submitTo" value=" 搜 索 " class="bigButton" />
				</td>
			</tr>
		</table>
	</form>
	
	</div>
	<!--{if $reportList}-->
	      <table width="100%" border="0" cellspacing="1" cellpadding="2" class="table1" style="margin-top:10px; text-align:center">
	        <tr>
	          <th width="10%">排名</th>
	          <th width="15%">所属系列</th>
	          <th width="15%">订货号</th>
	          <th width="30%">产品</th>
	          <th width="20%">销量</th>
	          <th width="10%">&nbsp;</th>
	          </tr>
		<!--{loop $reportList $v}-->
		<tr>
			<td>$v[top]</td>
			<td>$v[cateName]</td>
			<td>$v[productNo]</td>
			<td>$v[content]</td>
			<td>$v[num]</td>
			<td><a href="report-productAreaDistribution-$v[productId].htm?startDate=$startDate&endDate=$endDate">地区分布</a></td>
		</tr>
		<!--{/loop}-->
		<tr>
			<td colspan="10">$multipage</td>
		</tr>
	      </table>
	      <!--{/if}-->
	</div>
	
</div>
{template footer}